<HTML><HEAD><TITLE>list_to_ord_set(+List, -Set)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(ordset)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>list_to_ord_set(+List, -Set)</H1>
Converts a list to a set
<DL>
<DT><EM>List</EM></DT>
<DD>A list of terms
</DD>
<DT><EM>Set</EM></DT>
<DD>A set or variable
</DD>
</DL>
<H2>Description</H2>
	Succeeds when Set is the ordered representation of the set
	represented by the unordered representation List.  The only
	reason for giving it a name at all is that you may not have
	realised that sort/2 could be used this way.
<H3>Modes and Determinism</H3><UL>
<LI>list_to_ord_set(+, -) is det
</UL>
<H2>See Also</H2>
<A HREF="../../kernel/termcomp/sort-2.html">sort / 2</A>
</BODY></HTML>
